package bist.believeinstep.logic;

import java.util.List;

import bist.believeinstep.domain.TravelingArticleImage;
import bist.believeinstep.impl.TravelingArticleImageTemplate;
import bist.believeinstep.util.Util;

public class TravelingArticleImageService {
	private TravelingArticleImageTemplate travelingArticleImageTemplate;
	
	public TravelingArticleImageService(){
		travelingArticleImageTemplate = (TravelingArticleImageTemplate)Util.getConnection("travelingArticleImageTemplate");
	}
	public void create(TravelingArticleImage travelingArticleImage){
		travelingArticleImageTemplate.create(travelingArticleImage);
	}
	public void update(TravelingArticleImage travelingArticleImage){
		travelingArticleImageTemplate.update(travelingArticleImage);
	}
	public List<TravelingArticleImage> list(){
		return travelingArticleImageTemplate.list();
	}
	public void delete(Integer id){
		travelingArticleImageTemplate.delete(id);
	}
}

